home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-03-20 | 943 b | 26 lines | [TEXT/MPS ] |
- // snippet setting a speech channel to output to geoport handset
-
- SpeechChannel theChannel;
- Component soundOutput;
- char *welcome = "Welcome to MacinTalk!";
-
- err = NewSpeechChannel(nil,&theSpeechChannel);
- err = TELGetHSSoundOutput(termHandle,&soundOutput);
- err = SetSpeechInfo(theSpeechChannel,soSoundOutput,&soundOutput);
- err = SpeakText(theSpeechChannel,welcome,strlen(welcome));
- // talking happens async...
-
-
- -- What follows is a first attempt at what could be added to Inside Macintosh on
- Page 4-44 right before soSpeechDoneCallBack.
-
- soSoundOutput
-
- Change the output device of a speech channel. The speechInfo parameter is a
- pointer to a Component. The existing sound channel within the speech channel will
- be closed and a new channel will be opened using the specified sound output
- component.
-
- This selector works with the SetSpeechInfo function and might move memory. Your
- application should not invoke it at interrupt time.
-